package xsd.domain;

import java.util.List;

/**
 * Created by donar on 17/3/10.
 */
public class SimpleType implements Type{
    String name;

    String type; //restriction /union

    Restriction restriction;

    List<SimpleType> union;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Restriction getRestriction() {
        return restriction;
    }

    public void setRestriction(Restriction restriction) {
        this.restriction = restriction;
    }

    public List<SimpleType> getUnion() {
        return union;
    }

    public void setUnion(List<SimpleType> union) {
        this.union = union;
    }
}
